<template>
  <div class="lg:flex">
    <Avatar :src="userinfo.user.avatar || headerImg" :size="72" class="!mx-auto !block" />
    <div class="flex flex-1 justify-start md:mt-0 mt-4">
      <div class="md:ml-6 flex flex-col justify-center md:mt-0 mt-2">
        <h1 class="md:text-lg text-md">您好, {{ userinfo.realName }}, 开始您一天的工作吧！</h1>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { Avatar } from 'ant-design-vue'
import { useUserStore } from '/@/store/modules/user'
import headerImg from '/@/assets/images/header.jpg'

const userStore = useUserStore()
const userinfo: any = computed(() => userStore.getUserInfo)
</script>

<style lang="less" scoped>
.button-margin {
  margin: 0 0 0 0.5rem;
}
</style>
